# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libfontenc
pkgver=1.1.4
pkgrel=0
pkgdesc="X11 font encoding library"
url="http://xorg.freedesktop.org/"
arch="all"
license="MIT"
options="!check"  # No test suite.
depends=
makedepends="util-macros xorgproto zlib-dev"
subpackages="$pkgname-dev"
source="https://www.x.org/releases/individual/lib/$pkgname-$pkgver.tar.bz2"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-static \
		--with-encodingsdir=/usr/share/fonts/encodings
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="76fa851d00113241f15fdd5b5bb7e927b8d8b9a82ce3fcb0678b8c7e32cb5e8d898c4bda1d60dafb7748145049d3240627ac34a2360c64e98a7a912ea7c30582  libfontenc-1.1.4.tar.bz2"
